import Vue from 'vue'
import VueRouter from 'vue-router'
import denglu from '../views/denglu.vue'
import shouye from '../views/shouye.vue'
import jiaose from '../views/jiaose.vue'
import qiyedata from '../views/qiyedata.vue'
import zhengfu from '../views/zhengfu.vue'
import qiyefuwu from '../views/qiyefuwu.vue'
import pepo from '../views/pepo.vue'
import wode from '../views/My.vue'
import lunbodata from '../views/lunbodata.vue'
import chongqindata from '../views/chongqindata.vue'
import remendata from '../views/remendata.vue'
import kefyliaotian from '../views/kefyliaotian.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'denglu',
    component: denglu
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
  {
    path: '/shouye',
    name: 'shouye',
    component: shouye
  },
  {
    path: '/jiaose',
    name: 'jiaose',
    component: jiaose
  },
  {
    path: '/qiyedata',
    name: 'qiyedata',
    component: qiyedata
  },
  {
    path: '/zhengfu',
    name: 'zhengfu',
    component: zhengfu
  },
  {
    path: '/qiyefuwu',
    name: 'qiyefuwu',
    component: qiyefuwu
  },
  {
    path: '/pepo',
    name: 'pepo',
    component: pepo
  },
  {
    path: '/wode',
    name: 'wode',
    component: wode
  },
  {
    path: '/lunbodata',
    name: 'lunbodata',
    component: lunbodata
  },
  {
    path: '/chongqindata',
    name: 'chongqindata',
    component: chongqindata
  },
  {
    path: '/remendata',
    name: 'remendata',
    component: remendata
  },
  {
    path: '/kefyliaotian',
    name: 'kefyliaotian',
    component: kefyliaotian
  }

]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
